package com.by.mapper;

import com.by.bean.Order.Order;
import com.by.bean.OrderDetail;
import com.by.bean.OrderLog;
import com.by.bean.OrderQueryCriteria;
import com.by.common.core.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper extends IMapper<Order> {
    /**
     * 查询订单列表
     * @param orderQueryCriteria
     * @return
     */
    List<Order> queryOrderList(OrderQueryCriteria orderQueryCriteria);

    /**
     * 根据订单编号查询订单日志
     * @param orderSn
     * @return
     */
    List<OrderLog> queryOrderLog(String orderSn);

    /**
     * 根据订单编号查询订单
     * @param code
     * @return
     */
    Order queryOrderByCode(String code);

    /**
     * 根据订单编号查询订单详情
     * @param code
     * @return
     */
    OrderDetail queryOrderDetailByCode(String code);

}
